//
//  GDFCitysTableViewCell.m
//  GlobalDeliciousFood
//
//  Created by lanou on 16/1/11.
//  Copyright © 2016年 com.mjykj.www. All rights reserved.
//



#import "GDFCitysTableViewCell.h"
#define kRow 10
#define kMarcio 20
#define kHalf 50
@implementation GDFCitysTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _imageV = [[UIImageView alloc] initWithFrame:CGRectMake(kRow, kRow, kHalf, kHalf)];
        [self.contentView addSubview:_imageV];
        
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(kRow, _imageV.bottom + kRow, kHalf, kMarcio)];
        _nameLabel.textAlignment = NSTextAlignmentCenter;
        _nameLabel.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:_nameLabel];
        
    }
    return self;
}

- (void)setTitleName:(NSString *)titleName{
    _titleName = titleName;
    _nameLabel.text = titleName;
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
